function like(id){
	var likes = document.getElementById(id + "-likes").innerHTML*1 //convert to number;
	likes += 1;
	document.getElementById(id + "-likes").innerHTML = likes;
	//disable vote buttons 
	document.getElementById(id + "-like-btn").style.opacity = 0.5;
	document.getElementById(id + "-dislike-btn").style.opacity = 0.5;
}
function dislike(id){
	var dislikes = document.getElementById(id + "-dislikes").innerHTML*1 //convert to number;
	dislikes += 1;
	document.getElementById(id + "-dislikes").innerHTML = dislikes;
	//disable vote buttons 
	document.getElementById(id + "-like-btn").style.opacity = 0.5;
	document.getElementById(id + "-dislike-btn").style.opacity = 0.5;
}
// function vote(id, type){
// 	var vote = document.getElementById(id + type).innerHTML*1 //convert to number;
// 	vote += 1;
// 	document.getElementById(id + type).innerHTML = vote;
// 	//disable vote buttons 
// 	document.getElementById(id + "-like-btn").style.opacity = 0.5;
// 	document.getElementById(id + "-dislike-btn").style.opacity = 0.5;
// }